package com.example.wechattakeaway.service;

import com.example.wechattakeaway.form.mermenuform.InsertMerMenuForm;
import com.example.wechattakeaway.form.mermenuform.UpdateMerMenuForm;
import com.example.wechattakeaway.vo.ResultVO;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Service
@Repository
public interface MerMenuService {
    //添加菜单
    ResultVO insertMerMenu(InsertMerMenuForm insertMerMenuForm);

    //修改菜单
    ResultVO updateMerMenu(UpdateMerMenuForm updateMerMenuForm);


    //根据id查询菜单
    ResultVO selectMenuById(Integer menuId);

    //根据商家id查询菜单列表(分页)
    ResultVO selectMenuByMerchantId(Integer pageNum,Integer merchantId);

    //根据id删除菜单
    ResultVO deleteMerMenu(Integer menuId);

    //根据商家id查询菜单列表
    ResultVO selectMenuByMerId(Integer merchantId);
}
